import threading
import re
import queue
import shutil
import os


q = queue.Queue()

sample_event = threading.Event()
totalErrors=0 #表示一个样本的总错误数


compare_event = threading.Event()
sample_name = ''


logServerIp='' #日志服务器ip

db_path='./db/'
def sanitize_name(table_name):
    # 这个正则表达式匹配任何非数字、非字母、非下划线的字符
    return re.sub(r'[^\w]', '_', table_name)

def copyfile(src, dst):
    src = os.path.normpath(src)
    dst = os.path.normpath(dst)
    shutil.copyfile(src, dst)
